import request from '@/utils/axios'

export default {
	// 朋友圈列表
	momentList: (data) => request({
		url: 'jstx.moment/list',
		method: 'post',
		data
	}),
	// 朋友圈消息列表
	otherLikeCommentList: (data) => request({
		url: 'jstx.moment/otherLikeCommentList',
		method: 'post',
		data
	}),

	// 朋友圈详情
	momentDetail: (data) => request({
		url: 'jstx.moment/detail',
		method: 'post',
		data
	}),

	// 发布朋友圈
	publish: (data) => request({
		url: 'jstx.moment/publish',
		method: 'post',
		data
	}),
	// 点赞朋友圈
	like: (data) => request({
		url: 'jstx.moment/like',
		method: 'post',
		data
	}),

	// 评论朋友圈（支持无限评论和回复）
	comment: (data) => request({
		url: 'jstx.moment/comment',
		method: 'post',
		data
	}),
	// 删除朋友圈
	delete: (data) => request({
		url: 'jstx.moment/delete',
		method: 'post',
		data
	}),
	// 设置朋友圈可见范围
	setVisibleRange: (data) => request({
		url: 'jstx.moment/setVisibleRange',
		method: 'post',
		data
	}),

	// 朋友圈点赞列表
	likeList: (data) => request({
		url: 'jstx.moment/likeList',
		method: 'post',
		data
	}),
	// 朋友圈评论列表
	commentList: (data) => request({
		url: 'jstx.moment/commentList',
		method: 'post',
		data
	}),
	// 删除自己的点赞
	likeDelete: (data) => request({
		url: 'jstx.moment/likeDelete',
		method: 'post',
		data
	}),
	// 删除自己的评论
	commentDelete: (data) => request({
		url: 'jstx.moment/commentDelete',
		method: 'post',
		data
	}),
	// 设置朋友圈顶部背景图片
	setBgImage: (data) => request({
		url: 'jstx.moment/setBgImage',
		method: 'post',
		data
	}),
}